package org.oak.model;

/**
 * org.oak.model.MailDTO
 *
 * @author ZRS
 * @version V1.0
 * @since 2025/10/29 20:19
 */

import java.io.Serializable;
import java.util.Arrays;

public class MailDTO implements Serializable {

    private static final long serialVersionUID = -2163832562660572957L;

    private String recipient;  // 收件人邮箱
    private String[] recipients;  // 多个收件人（可选）
    private String subject;  // 邮件主题
    private String content;  // 邮件内容
    private String templateName;  // 模板名称（可选）
    private Object templateModel;  // 模板数据模型（可选）

    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient;
    }

    public String[] getRecipients() {
        return recipients;
    }

    public void setRecipients(String[] recipients) {
        this.recipients = recipients;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public Object getTemplateModel() {
        return templateModel;
    }

    public void setTemplateModel(Object templateModel) {
        this.templateModel = templateModel;
    }

    @Override
    public String toString() {
        return "MailDTO{" +
                "recipient='" + recipient + '\'' +
                ", recipients=" + Arrays.toString(recipients) +
                ", subject='" + subject + '\'' +
                ", content='" + content + '\'' +
                ", templateName='" + templateName + '\'' +
                ", templateModel=" + templateModel +
                '}';
    }
}
